/**
 * Copyright (C), 2015-2019, XXX有限公司
 * FileName: DrawContants
 * Author:   zhouheng
 * Date:     2019/4/14 18:22
 * Description: 常量
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.activity.services.processor.constants;

/**
 * 〈一句话功能简述〉<br> 
 * 〈常量〉
 *
 * @author zhouheng
 * @create 2019/4/14
 * @since 1.0.0
 */
public class DrawContants {
    public final static String DRAW_ITEM = "DRAW:ITEM"; //抽奖奖项的所有item key
    public final static String DRAW_AWARD = "DRAW:AWARD:"; //奖项对应的奖品key
    public final static String DRAWING_PREFIX = "DRAWING:"; //正在抽奖的redis key前缀
    public final static int EXPIRE_TIME = 10; //整个活动的所有key的过期时间，10天

    public enum ISEXIST{
        UNEXIST("0"), EXIST("1");
        private String value;
        ISEXIST(String value){
            this.value=value;
        }

        public String getValue() {
            return value;
        }
    }

    /**
     * @description: 获奖类型枚举
     * @date: 2019/4/14 23:40
     * @author:zhouheng
     */
    public enum AWARD_TYPE_ENUM{
        JD_CARD(1),
        FINANCE(2),
        NONE(3);

        private int value;
        AWARD_TYPE_ENUM(int value){
            this.value=value;
        }
        public int getValue(){
            return value;
        }
    }
}